/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import model.dao.CategoryFacade;
import model.dao.ComplaintFacade;
import model.dao.ComplaintFacadeLocal;
import model.entities.Complaint;

/**
 *
 * @author Thuy
 */
@ManagedBean
@RequestScoped
public class ComplaintUser {
    @EJB
    private ComplaintFacadeLocal complaintFacade;
    Complaint complaint =  new Complaint();
    
    public Complaint getComplaint() {
        return complaint;
    }

    public void setComplaint(Complaint complaint) {
        this.complaint = complaint;
    }

    public ComplaintUser() {
        complaintFacade = new ComplaintFacade();
    }
    public void insertComplaint(){
        complaintFacade.create(complaint);
    }
    
}
